﻿using BS.Domain;
using BS.Domain.Address;
using BS.Domain.Cultivation;
using BS.Domain.ProcessTable;
using BS.Domain.RBAC;
using BS.Domain.Slaughter;
using BS.Domain.traceability;
using Microsoft.EntityFrameworkCore;

namespace BS.Infra
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class BaseDbContext : DbContext
    {
        public BaseDbContext(DbContextOptions<BaseDbContext> options) : base(options)
        {
        }

        public DbSet<UserInfo> UserInfo { get; set; }
         
        public DbSet<Role> Role { get; set; }

        public DbSet<UserRole> UserRole { get; set; }

        public DbSet<Permissions> Permissions { get; set; }

        public DbSet<RolePermissions> RolePermissions { get; set; }

        public DbSet<Goods> Goods { get; set; }

        public DbSet<traceabilitable> traceabilitable { get; set; }

        public DbSet<Pictures> Pictures { get; set; }

        public DbSet<Address> Address { get; set; }

        public DbSet<BreedingEnterprises> BreedingEnterprises { get; set; }

        public DbSet<Breedings> Breedings { get; set; }

        public DbSet<Imunitys> Imunitys { get; set; }

        public DbSet<Processing> Processing { get; set; }

        public DbSet<SlaughterEnterprise> SlaughterEnterprise { get; set; }

        public DbSet<Slaughters> Slaughters { get; set; }
    }
}
